<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- BinaryArray.qdoc -->
  <title>BinaryArray Class | OpenVisa 0.6.0</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
    <div class="main">
    <div class="main-rounded">
        <div class="navigationbar">
        <ul>
<li><a href="index.html">OpenVisa 0.6&#x2e;0</a></li>
<li><a href="index.html">OpenVisa</a></li>
<li>BinaryArray</li>
<li id="buildversion">OpenVisa 0.6.0 Reference Documentation</li>
    </ul>
    </div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3 id="toc">Contents</h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">BinaryArray Class</h1>
<span class="small-subtitle">template &lt;typename T&gt; class <a href="openvisa-module.html">OpenVisa</a>::BinaryArray</span>
<!-- $$$BinaryArray-brief -->
<p>Visa返回二进制数组时，使用该类进行解析. 该类型可用于长期保存，访问其中数字时没有额外的开销，只有在转换为vector时，会产生内存复制. <a href="#details">More...</a></p>
<!-- @@@BinaryArray -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">  <span class="preprocessor">#include &lt;BinaryArray.h&gt;</span>
</td></tr></table></div>
<ul>
<li><a href="openvisa-binaryarray-members.html">List of all members, including inherited members</a></li>
</ul>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="openvisa-binaryarray.html#BinaryArray-2">BinaryArray</a></b>(int &amp;&amp;<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="openvisa-binaryarray.html#BinaryArray">BinaryArray</a></b>(std::string &amp;&amp;<i>buffer</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> OpenVisa::BinaryArray::Iterator </td><td class="memItemRight bottomAlign"><b><a href="openvisa-binaryarray.html#begin">begin</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const OpenVisa::BinaryArray::Type *</td><td class="memItemRight bottomAlign"><b><a href="openvisa-binaryarray.html#data">data</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="openvisa-binaryarray.html#empty">empty</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> OpenVisa::BinaryArray::Iterator </td><td class="memItemRight bottomAlign"><b><a href="openvisa-binaryarray.html#end">end</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> std::size_t </td><td class="memItemRight bottomAlign"><b><a href="openvisa-binaryarray.html#size">size</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> std::vector&lt;Type&gt; </td><td class="memItemRight bottomAlign"><b><a href="openvisa-binaryarray.html#operator-std-3a-3avector-ltType-gt">operator std::vector&lt;Type&gt;</a></b>() const</td></tr>
</table></div>
<!-- $$$BinaryArray-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
</div>
<!-- @@@BinaryArray -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$BinaryArray$$$BinaryArrayint&& -->
<h3 class="fn" id="BinaryArray-2"><code>[default] </code>BinaryArray::<span class="name">BinaryArray</span>(<span class="type">int</span> &amp;&amp;<i>other</i>)</h3>
<p>移动构造函数.</p>
<!-- @@@BinaryArray -->
<!-- $$$BinaryArray[overload1]$$$BinaryArraystd::string&& -->
<h3 class="fn" id="BinaryArray">BinaryArray::<span class="name">BinaryArray</span>(<span class="type">std::string</span> &amp;&amp;<i>buffer</i>)</h3>
<p>从 <i>buffer</i> 构造一个二进制数组解析器，并接管 <i>buffer</i> 的生命周期.</p>
<!-- @@@BinaryArray -->
<!-- $$$begin[overload1]$$$begin -->
<h3 class="fn" id="begin"><span class="type">OpenVisa::BinaryArray::Iterator</span> BinaryArray::<span class="name">begin</span>() const</h3>
<p>返回起始迭代器.</p>
<!-- @@@begin -->
<!-- $$$data[overload1]$$$data -->
<h3 class="fn" id="data">const <span class="type">OpenVisa::BinaryArray::Type</span> *BinaryArray::<span class="name">data</span>() const</h3>
<p>返回数据地址.</p>
<!-- @@@data -->
<!-- $$$empty[overload1]$$$empty -->
<h3 class="fn" id="empty"><span class="type">bool</span> BinaryArray::<span class="name">empty</span>() const</h3>
<p>返回容器是否为空.</p>
<!-- @@@empty -->
<!-- $$$end[overload1]$$$end -->
<h3 class="fn" id="end"><span class="type">OpenVisa::BinaryArray::Iterator</span> BinaryArray::<span class="name">end</span>() const</h3>
<p>返回终止迭代器.</p>
<!-- @@@end -->
<!-- $$$size[overload1]$$$size -->
<h3 class="fn" id="size"><span class="type">std::size_t</span> BinaryArray::<span class="name">size</span>() const</h3>
<p>返回数据点个数.</p>
<!-- @@@size -->
<!-- $$$operator std::vector<Type>[overload1]$$$operator std::vector<Type> -->
<h3 class="fn" id="operator-std-3a-3avector-ltType-gt"><span class="type">std::vector</span>&lt;<span class="type">Type</span>&gt; BinaryArray::<span class="name">operator std::vector&lt;Type&gt;</span>() const</h3>
<p>隐式转换为vector，转换时将分配内存.</p>
<!-- @@@operator std::vector<Type> -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> OpenVisa
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/> </div>
</body>
</html>
